{% extends "layout.html" %}
{% block content %}
<div class="grid">
    {% for item in data %}
    <a href="{{ item.link }}" target="blank" class="card {% if item.timestamp|is_in24h %}todaynew{% endif %}">
        <span class="cardindex">{{ loop.index }}. </span>
        <span class="cardtitle">{{ item.title }}</span>
        <!-- &nbsp;&nbsp;<i class="fa fa-rss normalink" aria-hidden="true" onclick="javascript:window.open('{{ item.rss }}')"></i> -->
        <div class="carddetail">
            <span class="cardate">{{ item.date }}</span>
            <span class="cardauthor cardhome normalink" onclick="javascript:window.open('{{ item.home }}')">{{ item.author }}</span>
        </div>
    </a>
    {% endfor %}
</div>
{% import "pagination.html" as macros %}
{% if pagination %}
{% if kwargs %}
{{ macros.pagination_widget(pagination, endpoint, id=id, **kwargs) }}
{% else %}
{{ macros.pagination_widget(pagination, endpoint, id=id) }}
{% endif %}
{% endif %}
{% endblock %}